package net.xdclass.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lixin
 * @since 2024-08-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("coupon")
@ApiModel(value="Coupon对象", description="")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "优惠卷类型[NEW_USER注册赠券，TASK任务卷，PROMOTION促销劵]")
    private String category;

    @ApiModelProperty(value = "发布状态, PUBLISH发布，DRAFT草稿，OFFLINE下线")
    private String publish;

    @ApiModelProperty(value = "优惠券图片")
    private String couponImg;

    @ApiModelProperty(value = "优惠券标题")
    private String couponTitle;

    @ApiModelProperty(value = "抵扣价格")
    private BigDecimal price;

    @ApiModelProperty(value = "每人限制张数")
    private Integer userLimit;

    @ApiModelProperty(value = "优惠券开始有效时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "优惠券失效时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "优惠券总量")
    private Integer publishCount;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    private LocalDateTime createTime;

    @ApiModelProperty(value = "满多少才可以使用")
    private BigDecimal conditionPrice;


}
